package com.one.group.user.tool;

import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.convert.Convert;
import org.springframework.stereotype.Component;

@Component
public class TenantTool {
    public static Long getTenantId() {
        return Convert.toLong(StpUtil.getExtra("tenant_id"));
    }
}
